# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=maclookup
pkgver=0.4
pkgrel=2
epoch=1
groups=('blackarch' 'blackarch-networking')
pkgdesc='Lookup MAC addresses in the IEEE MA-L/OUI public listing.'
url='https://github.com/paraxor/maclookup'
arch=('any')
license=('GPL3')
makedepends=('git')
source=("https://github.com/paraxor/$pkgname/archive/$pkgver.tar.gz")
sha512sums=('cd4f60dc09571d02c535db583772a7cc08a4caa1bc554ba2bb9bb0d9bd90a1d8fcdb5c9d2e180791560e23fc644e08f06848f8f6af1c71d7ec7a340f5a31f6ac')

package() {
  cd "$pkgname-$pkgver"

  install -dm 755 "$pkgdir/usr/share/maclookup"

  install -Dm 755 "$pkgname.sh" "$pkgdir/usr/bin/$pkgname"

  sh "$pkgname.sh" -u -f "$pkgdir/usr/share/$pkgname/oui.txt"
}

